from django.urls import re_path, path, include
from rest_framework import routers
from . import views

router = routers.DefaultRouter()
router.register(r"conf", views.AllinpayCallmeConfSetViewSet, basename="01呼叫配置")
router.register(r"ModCallme", views.AllinpayRawardModelViewSet, basename="02奖励模板")

router.register(r"mypost", views.AllinpayCallmePostSetViewSet, basename="04应答配置")
router.register(r"callme", views.AllinpayCallmeListViewSet, basename="05呼叫列表")

router.register(r"NewCallMe", views.AllinpayCallmeCreatViewSet, basename="06创建呼叫订单")

router.register(r"PotCallMe", views.AllinpayCallmeReqsnPostViewSet, basename="07手动派单")
router.register(r"PosCallMe", views.AllinpayCallmeReqsnOverViewSet, basename="08手动结单")
router.register(
    r"PoeCallMe", views.AllinpayCallmeReqsnExcetViewSet, basename="09评价呼叫记录"
)

# router.register(r"evaluate", views.AllinpayEvaluateConfSetViewSet, basename="02评价配置")
# router.register(r"rewards", views.AllinpayRewardsConfSetViewSet, basename="03奖励配置")
# router.register(r"madeconf", views.MadeCallmeConfSetViewSet, basename="10定制呼叫配置")

urlpatterns = [
    path("", include(router.urls)),
]
